import { BASE } from '../api'
import { METHOD, request } from '@/utils/request'

// 纪检生态雷达图
export async function getEcologyChartData(params) {
    return request(`${BASE}/chart/ecology`, METHOD.POST, params)
}

// 考核占比饼状图
export async function getRatioChartData(params) {
    return request(`${BASE}/chart/executeDept`, METHOD.POST, params)
}

// 整改情况柱状图
export async function getBarChartData(params) {
    return request(`${BASE}/chart/eventCorrect`, METHOD.POST, params)
}

// 考核分数柱状图
export async function getBarChartData2(params) {
    return request(`${BASE}/statistics/query`, METHOD.POST, params)
}

export default { 
    getEcologyChartData,
    getRatioChartData,
    getBarChartData,
    getBarChartData2
}